import RenderUtils from "../RenderUtils";
import {RenderTypeItem} from "../ConfigType";

const elSwitch: RenderTypeItem = {
  name: 'switch',
  /**
   *
   * @param createElement
   * @param vm
   * @param formItem
   * @return {VNode[]}
   */
  render(createElement, vm, formItem) {
    const config = RenderUtils.getConfig(vm, formItem, {
    }, this)
    return [
      createElement(`el-switch`, config)
    ]
  }
}

export default elSwitch
